package com.snda.storage.service.sdk.xml;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import com.snda.storage.service.sdk.ValueObject;

/**
 * 
 * @author wangzijian
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "ListBucketResult")
public class ListBucketResult extends ValueObject {

	@XmlElement(name = "Name")
	private String bucketName;

	@XmlElement(name = "Prefix")
	private String prefix;

	@XmlElement(name = "Marker")
	private String marker;

	@XmlElement(name = "NextMarker")
	private String nextMarker;

	@XmlElement(name = "MaxKeys")
	private Integer maxKeys;

	@XmlElement(name = "Delimiter")
	private String delimiter;

	@XmlElement(name = "IsTruncated")
	private Boolean truncated;

	@XmlElement(name = "Contents")
	private List<Content> contents;

	@XmlElementWrapper(name = "CommonPrefixes")
	@XmlElement(name = "Prefix")
	private List<String> commonPrefixes;

	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	public List<Content> getContents() {
		return contents;
	}

	public void setContents(List<Content> contents) {
		this.contents = contents;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getMarker() {
		return marker;
	}

	public void setMarker(String marker) {
		this.marker = marker;
	}

	public Integer getMaxKeys() {
		return maxKeys;
	}

	public void setMaxKeys(Integer maxKeys) {
		this.maxKeys = maxKeys;
	}

	public Boolean getTruncated() {
		return truncated;
	}

	public void setTruncated(Boolean truncated) {
		this.truncated = truncated;
	}

	public String getDelimiter() {
		return delimiter;
	}

	public void setDelimiter(String delimiter) {
		this.delimiter = delimiter;
	}

	public String getNextMarker() {
		return nextMarker;
	}

	public void setNextMarker(String nextMarker) {
		this.nextMarker = nextMarker;
	}

	public List<String> getCommonPrefixes() {
		return commonPrefixes;
	}

	public void setCommonPrefixes(List<String> commonPrefixes) {
		this.commonPrefixes = commonPrefixes;
	}

}
